{#{% extends 'Base/form_creator.html.twig' %}#}
{% extends 'Back/Sano/form.creator.html.twig' %}
{% block intro %}
{% endblock %}
{% block myJs %}
    <script>
        var Page
        $(function () {
            Page = createVM("#Page", {
                en:{{ show.vars.attr.en |raw }}
            }, {
                "init": function () {
                    this.en.isAll = 0
                }
                , "submit": function () {
                    var _this = this
                    apiPost("{{ path("apiGetShopCategoryApplys") }}", _this.en, function (res,code) {
                        if (code == 200) {
                            setTimeout(function () {
                                goto("{{path("ShopCategoryApplyLists")}}")
                            },500)
                        }
                        showToast(res.message);
                    })
                }
                , ArratDelIndex: function (name, index) {
                    var data = this.en[name]
                    data = arrayDelIndex(data, index)
                    this.en[name] = data
                }
            })
            initPage()
        })
    </script>
{% endblock %}